﻿@{
    Layout = "~/Areas/Admin/Views/Shared/_LayoutCMS.cshtml";
    ViewBag.Title = "EnterpriseAudit";
}

<h2>企业审核</h2>


@section htmlhead{
    <link href="~/Content/assets/css/Layout/css/main.css" rel="stylesheet" />
    <link href="~/Content/assets/css/plugin/validator.css" rel="stylesheet" />
    <link href="~/Content/assets/js/jqueryui.css" rel="stylesheet" />
    <style type="text/css">
        .bdsug {
            position: absolute;
            width: 269px;
            background: #fff;
            display: none;
            border: 1px solid #817f82;
        }

            .bdsug li {
                width: 253px;
                color: #000;
                font: 14px arial;
                line-height: 25px;
                padding: 0 8px;
                position: relative;
                cursor: default;
            }

                .bdsug li:hover {
                    background: #ebebeb;
                }
    </style>
}

@model LY.Entity.T_Enterprise
<div class="container">
    <div id="forms" class="mt10">
        <div class="box">
            <div class="box_border">
                @*<div class="box_top"><b class="pl15"></b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;带“ <span style="color: red">*</span> ”标示为必填项</div>*@
                <div class="box_center">
                    <form  id="frmEdit" method="post" action="@Url.Action("SaveEnterprise")" role="form" class="jqtransform">
                        <input id="hideId" name="ID" value="@Model.ID" type="hidden" />
                        <table class="form_table pt15 pb15" style="width: 100%;" border="0">
                            <tr>
                                <td><b class="pl15 td_right">企业信息</b></td>
                            </tr>
                            <tr>
                                <td class="td_right"><span style="color: red"></span>&nbsp;企业名称：</td>
                                <td class="">
                                    <input type="text"  id="EnterpriseName" name="EnterpriseName" value="@Model.EnterpriseName" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">借款金额：</td>
                                <td class="">
                                    <input type="text" id="BorrowAmount" name="BorrowAmount" value="@Model.BorrowAmount" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">借款期限：</td>
                                <td class="">
                                    <input type="text" id="LoanPeriod" name="LoanPeriod" value="@Model.LoanPeriod" class="input-text lh30" size="40">个月
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">联系方式：</td>
                                <td class="">
                                    <input type="text" id="Tel" name="Tel" value="@Model.Tel" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">企业概况：</td>
                                <td class="">
                                   @* <input type="hidden" id="Remarks" class="input-text lh30">*@
                                    <textarea id="Rem" name="Remarks" style="width: 70%; height: 140px;" class="input-text lh125 wh200" maxlength="980">@Model.Remarks</textarea>
                                </td>
                            </tr>
                             <tr>
                                <td><b class="pl15 td_right">企业审核</b></td>
                            </tr>
                            <tr>
                                <td class="td_right">审核说明：</td>
                                @* <td class=""> 
                           @Html.ResourceRadioList("AuditStatus", "AuditStatus", Model.AuditStatus == null ? 0 : Model.AuditStatus, true)
                        </td>
                        <td class="td_right">审核说明：</td>*@
                                <td class="" colspan="3">
                                    <input type="text" id="AuditExplain" name="auditremark" readonly="true"  value="" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right">审核日期：</td>
                                <td class="">
                                    <input type="text" name="datetime"  disabled="disabled" id="AuditTime"  value="@DateTime.Now.ToString()" class="input-text lh30" size="40" />
                                </td>

                                <td class="td_right">审核人：</td>
                                <td class="">
                                    <input type="text" name="audituser" disabled="disabled" id="AuditUser" value="@ViewBag.logname" class="input-text lh30" size="40">
                                </td>
                            </tr>
                            <tr>
                                <td class="td_right"></td>
                                <td class=""></td>
                            </tr>
                            <tr>
                           <td class="td_center" colspan="5">     
                                <input type="button" id="btnAudit" name="button" style="margin-right:50px;" class="btn btn82 btn_save2" value="通过"> 
                                <input type="button" id="btnReturn" name="button" class="btn btn82 btn_res" value="返回"> 
                                <input type="button" id="btnBack" name="button" style="margin-left:50px;" class="btn btn82 btn_save2" value="退回">
                           </td>
                         </tr>
                        </table>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@section jssection{
    <script type="text/javascript">
        var util = {};
        var options = {
            Audit: "@Url.Action("Audit")",
            Back: "@Url.Action("Audit")"

        };
    </script>
    <script type="text/javascript">
        $("#btnReturn").click(function () {
            location.href = "/Admin/Enterprise/VerifyList";
        });
        $("input[type=text]").attr("readonly", "readonly");
        $("#Rem").attr("readonly", "readonly");
    </script>
    @*    <script src="~/assets/js/jqueryui-1.10.3.min.js"></script>*@
    <script src="~/Content/assets/js/common.js"></script>
    <script src="~/Content/assets/layer/layer.min.js"></script>
    <script src="~/Content/assets/plugins/validator/validator.js"></script>
    <script src="~/Content/assets/app/Home/subenterprise.js"></script>
    <script src="~/Content/assets/DatePicker/WdatePicker.js"></script>
}
<script type="text/javascript">
    //通过
    $("#btnAudit").click(function (e) {
        $.post(options.Audit, { id: $('#hideId').val(), Status: 0 },
          function (res) {
              if (res.Status > 0) {
                  alert("操作成功！");
                  window.location.href = "/Admin/Enterprise/VerifyList";
              }
              else {
                  alert("操作失败！");
              }
          },
          "json"
    );
    });

    //退回
    $("#btnBack").click(function (e) {
        $.post(options.Back, { id: $('#hideId').val(), Status: 2 },
          function (res) {
              if (res.Status > 0) {
                  alert("操作成功！");
                  window.location.href = "/Admin/Enterprise/VerifyList";
              }
              else {
                  alert("操作失败！");
              }
          },
          "json"
    );
    });





</script>
